pub fn vec_to_image(image: Vec<u8>) -> slint::Image {
    let image = image::load_from_memory(&image)
        .expect("无法正确读取图像")
        .into_rgba8();
    slint::Image::from_rgba8(slint::SharedPixelBuffer::clone_from_slice(
        image.as_raw(),
        image.width(),
        image.height(),
    ))
}
